var express = require('express');
var router = express.Router();


/* GET home page. */
router.get('/', function (req, res, next) {
    res.render('index', { title: 'Express' });
});


var mgs = require('mongoose')

var url = "mongodb://127.0.0.1:27017/electronMong"
console.log(url)
mgs.connect(url, function (err) {
    if (!err) {
        console.log('+++++++++')
    }
})

// 数据类型
var type = { dateTime: String, ming: String, dizhi: String }
var electronMongs = mgs.model('electronMongs', type)


module.exports = electronMongs